<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'usuario-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Campos com asterisco (<span class="required">*</span>) s&atilde;o obrigat&oacute;rios.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'idUsuarioFB'); ?>
		<?php echo $form->textField($model,'idUsuarioFB',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'idUsuarioFB'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'nomeUsuarioFB'); ?>
		<?php echo $form->textField($model,'nomeUsuarioFB',array('size'=>60,'maxlength'=>60)); ?>
		<?php echo $form->error($model,'nomeUsuarioFB'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tipoUsuario'); ?>
		<?php echo $form->dropDownList($model,'tipoUsuario',CHtml::listData(TipoUsuario::model()->findAll(), 'id', 'descricao'), array('empty'=> '--Selecione uma opção--')); ?>
		<?php echo $form->error($model,'tipoUsuario'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>80)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'senha'); ?>
		<?php echo $form->passwordField($model,'senha',array('size'=>16,'maxlength'=>($model->isNewRecord)?16:32)); ?>
		<?php echo $form->error($model,'senha'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'newsletter'); ?>
		<?php echo $form->checkBox($model,'newsletter'); ?>
		<?php echo $form->error($model,'newsletter'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->dropDownList($model,'status', array('A' => 'Ativo', 'B' => 'Banido', 'S' => 'Suspenso') ,array('empty'=> '--Selecione uma opção--')); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Cadastrar' : 'Salvar'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
